Add option to override the album visibility for smart and tag albums#3379
Merged
Add option to override the album visibility for smart and tag albums#3379
Conversation
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
tinohager
reviewed
Jun 4, 2025
ildyria
commented
Jun 4, 2025
007a3c3 to
6e3c6e6
Compare
JasonMillward
approved these changes
Jun 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new sensitivity filter for photo queries and adds configuration options to override photo visibility in smart and tag albums. The changes primarily focus on enhancing the flexibility of visibility settings and improving query handling for sensitive content.
New Sensitivity Filter and Visibility Handling
Added a new
applySensitivityFiltermethod inPhotoQueryPolicyto restrict photo queries based on sensitivity settings. This method allows filtering out sensitive photos unless explicitly included (include_nsfwparameter). It also applies additional album-based restrictions if an origin album is provided.Updated
HasManyPhotosByTagto use the newapplySensitivityFilterwhen theTA_override_visibilityconfiguration is enabled, allowing tag albums to override photo visibility settings. [1] [2]Modified
BaseSmartAlbumto apply theapplySensitivityFilterwhen theSA_override_visibilityconfiguration is enabled, ensuring smart albums can override visibility settings while still applying album-specific conditions.Configuration for Visibility Overrides
SA_override_visibilityandTA_override_visibility. These options allow administrators to enable visibility overrides for smart and tag albums, respectively.